package com.ale.oxetool.exceptions;

/**
 * Created by guoshunw on 2016/4/4.
 */
public class BusinessException extends Exception {
    public static int PHONE_NUMBER_NOT_EXISTS = -1;
    public static int ALREADY_ON_TARGET_PLATFORM = -2;
    public static int TARGET_PLATFORM_ERROR = -3;
    
    private int errorCode;

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public BusinessException(int errorCode) {
        this.errorCode = errorCode;
    }

    public BusinessException(int errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public BusinessException(String message) {
        super(message);
    }
}
